export const usage = `
//全局引入
import PhModal from 'ph-modal' 或者
import {PhModal} from 'phoeon'
app.use(PhModal)
//子组件通过如下
this.$phAlert(context:string,opt?:PhAlertOpt):void
this.$phConfirm(content:string,opt?:PhConfirmOpt):PhModelShowRetrun

//局部引入
import PhModal from 'ph-modal'
PhMldal
//静态方法
alert(context:string,opt?:PhAlertOpt):void
//静态方法
confirm(content:string,opt?:PhConfirmOpt):PhModelShowRetrun

<scrippt>
import PhModal from 'ph-modal'
const openAlert = ()=>{
    PhModal.alert("我爱你，中国")
}
const openConfirm = ()=>{
    PhModal.confirm("我爱你，中国").done((a)=>{
        ins?.proxy?.$phToast(a==1?"确认事件":"取消事件")
    })
}
</script>
`
export const intro=`
enum PhConfirmAction{
    Done=1,
    Cancel=0,
}
type PhConfirmOpt = {
    doneText?:string,
    cancelText?:string,
    title?:string
}
type PhAlertOpt = {
    doneText?:string,
    title?:string
}
interface PhModelShowRetrun{
    done(fn:(a:PhConfirmAction)=>void):void
}

interface PhModal{
    alert(context:string,opt?:PhAlertOpt):void
    confirm(content:string,opt?:PhConfirmOpt):PhModelShowRetrun,
}
`